package cn.itsource.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data//将set get tostring方法交给spring管理
@AllArgsConstructor// 有参构造器
@NoArgsConstructor   //  无参构造器
@Table(name = "sys_user")
public class sys_user {
    //主键ID
    @Id
    private Long id;

    //登录账号
    @Column(name = "user_name")//将实体字段与数据库字段同步
    private String userName;

    //真实姓名
    @Column(name = "real_name")
    private String realName;

    //邮箱
    private String email;

    //手机号
    private String phonenumber;

    //头像地址
    private String avatar;

    //登录密码
    private String password;

    //备注
    private String remark;

}
